<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="PowerSourceTable">

    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label">头像</label>
            <div class="layui-input-block">
                <input type="hidden" name="harder_img"  value='{$vo.harder_img|default=""}' class="layui-input">
                <script> $('[name=harder_img]').uploadOneImage(); </script>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-col-xs5">
                <label class="layui-form-label">名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name"  value='{$vo.name|default=""}' class="layui-input">
                </div>
            </div>
            <div class="layui-col-xs5">
                <label class="layui-form-label">昵称</label>
                <div class="layui-input-block">
                    <input type="text" name="nickname"  value='{$vo.nickname|default=""}' class="layui-input">
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-col-xs5">
                <label class="layui-form-label">陪玩等级</label>
                <div class="layui-input-block">
                    <select name="grade" >
                        {foreach $power_grade as $v}
                        <option value="{$v.id}" {if isset($vo.grade) && $vo.grade == $v.id}selected{/if}>{$v.title}</option>
                        {/foreach}
                    </select>
                </div>
            </div>

            <div class="layui-col-xs5">
                <label class="layui-form-label">生日</label>
                <div class="layui-input-block">
                    <input type="text" name="birthday"  data-date-input="date" value='{$vo.birthday|default=""}' class="layui-input">
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-col-xs5">
                <label class="layui-form-label">总积分</label>
                <div class="layui-input-block">
                    <input type="text" name="points" value='{$vo.points|default="0.00"}' class="layui-input">
                </div>
            </div>
            <div class="layui-col-xs5">
                <label class="layui-form-label">已用积分</label>
                <div class="layui-input-block">
                    <input type="text" name="use_points" value='{$vo.use_points|default="0.00"}' class="layui-input">
                </div>
            </div>
        </div>




        <div class="layui-form-item">
            <label class="layui-form-label">介绍：</label>
            <div class="layui-input-block">
                <textarea placeholder="" class="layui-textarea" name="remark">{$vo.remark|default=""}</textarea>
            </div>
        </div>




    </div>


    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>{:lang('保存数据')}</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="{:lang('确定要取消编辑吗？')}" data-close>{:lang('取消编辑')}</button>
    </div>
</form>

